package com.mall.mapper;

import com.mall.pojo.Business;
import com.mall.pojo.Commodity;

import java.util.List;

public interface BusinessMapper {
    Boolean insertBusiness(Business business);

    Business login(String identityCard, String pwd);

    Business loginByPhone(String phone, String pwd);

    List<Commodity> showCommodity(String commodityName,  Integer LIMIT, Integer OFFSET);

    Integer showCommodityCount(String commodityName);

    Boolean addCommodity(Commodity commodity);
}
